package com.llkj.contractmanagement.utils;

import com.llkj.contractmanagement.model.ActorBean;
import com.llkj.contractmanagement.model.ContractBean;

import java.util.Comparator;

/**
 * @author xiaanming
 */
public class PinyinComparator2 implements Comparator<ActorBean.YrlistBean> {

    public int compare(ActorBean.YrlistBean o1, ActorBean.YrlistBean o2) {
        if (o1.getSortLetters().equals("@") || o2.getSortLetters().equals("#")) {
            return -1;
        } else if (o1.getSortLetters().equals("#") || o2.getSortLetters().equals("@")) {
            return 1;
        } else {
            return o1.getSortLetters().compareTo(o2.getSortLetters());
        }
    }

}
